package com.zzedu.params;

import com.alibaba.fastjson2.annotation.JSONField;
import org.springframework.web.multipart.MultipartFile;

public class ZzUploadFileParams {

    /**
     * id
     */
    private Long id;

    /**
     * 文件
     */
    @JSONField(serialize = false)
    private MultipartFile file;
    /**
     * 文件原名称
     */
    private String oldFileName;
    /**
     * 文件访问地址
     */
    private String url;
    /**
     * 文件名称
     */
    private String fileName;
    /**
     * 文件扩展名称
     */
    private String fileExt;
    /**
     * 来源模块
     */
    private String sourceModel;
    /**
     * 大小
     */
    private Long size;
    /**
     * 顺序
     */
    private Long sortNum;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOldFileName() {
        return oldFileName;
    }

    public void setOldFileName(String oldFileName) {
        this.oldFileName = oldFileName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileExt() {
        return fileExt;
    }

    public void setFileExt(String fileExt) {
        this.fileExt = fileExt;
    }

    public String getSourceModel() {
        return sourceModel;
    }

    public void setSourceModel(String sourceModel) {
        this.sourceModel = sourceModel;
    }

    public MultipartFile getFile() {
        return file;
    }

    public void setFile(MultipartFile file) {
        this.file = file;
    }

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public Long getSortNum() {
        return sortNum;
    }

    public void setSortNum(Long sortNum) {
        this.sortNum = sortNum;
    }
}
